/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.Text;
using System.CodeDom.Compiler;


namespace SWF
{
	public struct LineStyle : ILineStyle
	{
		public ushort Width;
		public RGBA Color;

		public LineStyle(SwfReader r, bool useAlpha)
		{
			this.Width = r.GetUI16();
			if (useAlpha)
			{
				this.Color = new RGBA(r.GetByte(), r.GetByte(), r.GetByte(), r.GetByte());
			}
			else
			{
				this.Color = new RGBA(r.GetByte(), r.GetByte(), r.GetByte());
			}
		}
	}
}
